<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

    <head>
        <th:block th:include="include::header('奖励事项设定')" />
    </head>

    <body class="febs-container" id="febs-incentiveRewardMatters">
    <div class="febs-body layui-fluid" lay-title="奖励事项设定">
        <div class="febs-body-search">
            <form class="layui-form layui-table-form" lay-filter="incentiveRewardMatters-table-form" id="incentiveRewardMatters-table-form">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <div class="layui-inline" id="post-tenant" th:if="${hasHeadCompanyRole }">
                                <label class="layui-form-label layui-form-label-sm">公司名称</label>
                                <div class="layui-input-inline" >
                                    <select name="tenantSelect" id="tenantSelect" lay-search="" t>
                                        <option th:each="item:${tenantList }"
                                                th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                th:selected="${currentTenantId ==item.tenantId}">
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">奖励事项名称</label>
                                <div class="layui-input-inline" style="width:190px;">
                                    <input type="text" name="mattersName" autocomplete="off" placeholder="请输入奖励事项名称"
                                           class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">启用状态</label>
                                <div class="layui-input-inline" >
                                    <select name="status">
                                        <option value="">请选择</option>
                                        <option value="1">启用</option>
                                        <option value="0">禁用</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div id="query" class="layui-btn">
                                    <em class="layui-icon">&#xe615;</em> 查询
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="febs-table-full">
            <div class="layui-card febs-body-table">
                <div class="layui-card-body">
                    <table lay-filter="incentiveRewardMattersTable" lay-data="{id: 'incentiveRewardMattersTable'}"></table>
                </div>
            </div>
        </div>
    </div>
    <script type="text/html" id="incentiveRewardMatters-toolbar">
        <div lay-event="add" shiro:hasPermission="incentiveRewardMatters:add" class="layui-btn layui-btn-sm">
            <em class="layui-icon">&#xe654;</em> 新增
        </div>
    </script>
        <th:block th:include="include::foot" />
        <script type="text/html" id="incentiveRewardMatters-option">
            <span shiro:lacksPermission="incentiveRewardMatters:update,incentiveRewardMatters:delete">
            <span class="layui-badge-dot febs-bg-orange"></span> 无权限
            </span>
            <a lay-event="edit" shiro:hasPermission="incentiveRewardMatters:update"><em class="layui-icon febs-edit-area febs-blue">&#xe7a4;</em></a>
            <a lay-event="del" shiro:hasPermission="incentiveRewardMatters:delete"><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
        </script>
        <script data-th-inline="javascript" >
            currentTenantId = [[${currentTenantId}]],
            hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
        </script>
        <script th:src="@{/febs/js/incentive/incentiveRewardMatters/incentiveRewardMatters.js(v=1)}"></script>
        <script type="text/html" id="status-bar">
            <input type="checkbox" name="areaStatus" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
                   lay-filter="mattersStatus" lay-event="statusEvent"  {{ d.status == '1' ? 'checked' : '' }} />
        </script>
    </body>
</html>